package com.zyy.command.demo02;

/**
 * @Description: 类描述
 * @Author: zyy
 * @Date: 2023/08/04 23:29
 */
public class TurnOffThread implements Runnable{
    private Receiver receiver;

    public TurnOffThread(Receiver receiver) {
        this.receiver = receiver;
    }
    @Override
    public void run() {
        receiver.turnOFF();
    }
}
